


    <template>
            <transition name="el-zoom-in-center">
            <div class="JNPF-preview-main">
                <div class="JNPF-common-page-header">
                    <el-page-header @back="goBack"
                                    :content="!dataForm.id ? '新建':'编辑'"/>
                    <div class="options">
                        <el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading" :disabled='continueBtnLoading'> 保 存</el-button>
                        <el-button @click="goBack"> 取 消</el-button>
                    </div>
                </div>
            <el-row :gutter="30" class=" main" :style="{margin: '0 auto',width: '100%'}">
    <el-form ref="formRef" :model="dataForm" :rules="dataRule" size="medium" label-width="100px" label-position="top" >
    <template v-if="!loading">
        <!-- 具体表单 -->
                <el-col :span="4">
                <el-row :gutter="30">
            <el-col :span="24" >
                <jnpf-form-tip-item>
                    <JnpfText
 :textStyle='{"color":"#000000","font-weight":"normal","text-decoration":"none","font-size":12,"line-height":32,"font-style":"normal","text-align":"left"}'>
                </JnpfText>
                </jnpf-form-tip-item>
            </el-col>
                </el-row>
                </el-col>
                <el-col :span="16">
                <el-row :gutter="30">
            <el-col :span="24" >
                <jnpf-form-tip-item>
                    <JnpfText
 :textStyle='{"color":"#1684FC","font-weight":"bold","text-decoration":"none","font-size":24,"line-height":32,"font-style":"normal","text-align":"center"}' content="数字化改造验收">
                </JnpfText>
                </jnpf-form-tip-item>
            </el-col>
        <el-col :span="12" >
        <jnpf-form-tip-item
 label="企业名称"   prop="enterpriseName" >
        <JnpfInput   v-model="dataForm.enterpriseName" @change="changeData('enterpriseName',-1)"
 placeholder="自动填充不可修改"  readonly  clearable  :style='{"width":"100%"}'>
    </JnpfInput>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="12" >
        <jnpf-form-tip-item
 label="企业信用代码"  label-width="125px"  prop="enterpriseCreditCode" >
        <JnpfInput   v-model="dataForm.enterpriseCreditCode" @change="changeData('enterpriseCreditCode',-1)"
 placeholder="自动填充不可修改"  readonly  clearable  :style='{"width":"100%"}'>
    </JnpfInput>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="项目名称"   prop="projectNames" >
        <JnpfTextarea   v-model="dataForm.projectNames" @change="changeData('projectNames',-1)"
 placeholder="自动填充不可修改"  readonly  :style='{"width":"100%"}' true  type="textarea"  :autosize='{"minRows":4,"maxRows":4}' >
    </JnpfTextarea>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="数字化改造项目服务合同（盖章扫描版）"   prop="digitalProjectContract" >
        <JnpfUploadFile   v-model="dataForm.digitalProjectContract" @change="changeData('digitalProjectContract',-1)"
 :fileSize="50" sizeUnit="MB"  :limit="10"  pathType="defaultPath"  :isAccount="0"  buttonText="点击上传" >
    </JnpfUploadFile>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="数字化改造项目方案（盖章扫描版）"   prop="digitalProjectPlan" >
        <JnpfUploadFile   v-model="dataForm.digitalProjectPlan" @change="changeData('digitalProjectPlan',-1)"
 :fileSize="50" sizeUnit="MB"  :limit="10"  pathType="defaultPath"  :isAccount="0"  buttonText="点击上传" >
    </JnpfUploadFile>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="项目投资发票和付款凭证等交易记录（扫描版）"   prop="transactionRecords" >
        <JnpfUploadFile   v-model="dataForm.transactionRecords" @change="changeData('transactionRecords',-1)"
 disabled  tipText="请上传pdf格式，如有多项材料，请压缩至一个文件夹上传"  accept=".pdf"  :fileSize="200" sizeUnit="MB"  :limit="1"  pathType="defaultPath"  :isAccount="0"  buttonText="点击上传" >
    </JnpfUploadFile>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="《福州市中小企业数字化转型被改造试点企业项目验收申请函》（盖章扫描版，详见附件)"   prop="scanningCopy" >
        <JnpfUploadFile   v-model="dataForm.scanningCopy" @change="changeData('scanningCopy',-1)"
 disabled  tipText="请上传pdf格式"  accept=".pdf"  :fileSize="200" sizeUnit="MB"  :limit="2"  pathType="defaultPath"  :isAccount="0"  buttonText="点击上传" >
    </JnpfUploadFile>
    </jnpf-form-tip-item>
        </el-col>
            <el-col :span="24" >
                <jnpf-form-tip-item>
                    <JnpfDivider
  contentPosition="center" >
                </JnpfDivider>
                </jnpf-form-tip-item>
            </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="市局是否确认"   prop="isconfirm" >
        <JnpfRadio   v-model="dataForm.isconfirm" @change="changeData('isconfirm',-1)"
 disabled  optionType="default"  direction="horizontal"  size="small"  :options="isconfirmOptions" :props="isconfirmProps" >
    </JnpfRadio>
    </jnpf-form-tip-item>
        </el-col>

        <el-col :span="24" >
        <jnpf-form-tip-item
 label="验收结果建议"   prop="acceptIspass" >
        <JnpfRadio   v-model="dataForm.acceptIspass" @change="changeData('acceptIspass',-1)"
 optionType="default"  direction="horizontal"  size="small"  :options="acceptIspassOptions" :props="acceptIspassProps" >
    </JnpfRadio>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="整改意见"   prop="rectificationOpinions" >
        <JnpfTextarea   v-model="dataForm.rectificationOpinions" @change="changeData('rectificationOpinions',-1)"
 placeholder="请输入"  :style='{"width":"100%"}' true  type="textarea"  :autosize='{"minRows":4,"maxRows":4}' >
    </JnpfTextarea>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="12" >
        <jnpf-form-tip-item
 label="改造后数字化水平等级 "   prop="digitizationLevel" >
        <JnpfSelect   v-model="dataForm.digitizationLevel" @change="changeData('digitizationLevel',-1)"
 placeholder="请选择"  clearable  :style='{"width":"100%"}' :options="digitizationLevelOptions" :props="digitizationLevelProps" >
    </JnpfSelect>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="企业数字化改造项目成效验收报告 "   prop="performanceAcceptanceReport" >
        <JnpfUploadFile   v-model="dataForm.performanceAcceptanceReport" @change="changeData('performanceAcceptanceReport',-1)"
 tipText="如有多项材料，请压缩至一个文件夹上传 "  :fileSize="50" sizeUnit="MB"  :limit="1"  pathType="defaultPath"  :isAccount="0"  buttonText="点击上传" >
    </JnpfUploadFile>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="企业数字化水平评测报告 "   prop="digitalEvaluationReport" >
        <JnpfUploadFile   v-model="dataForm.digitalEvaluationReport" @change="changeData('digitalEvaluationReport',-1)"
 tipText="如有多项材料，请压缩至一个文件夹上传 "  :fileSize="50" sizeUnit="MB"  :limit="1"  pathType="defaultPath"  :isAccount="0"  buttonText="点击上传" >
    </JnpfUploadFile>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="12" >
        <jnpf-form-tip-item
 label="市局待办情况"   prop="todoStatus" >
        <JnpfSelect   v-model="dataForm.todoStatus" @change="changeData('todoStatus',-1)"
 placeholder="请选择"  clearable  :style='{"width":"100%"}' :options="todoStatusOptions" :props="todoStatusProps" >
    </JnpfSelect>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="12" >
        <jnpf-form-tip-item
 label="市局确认状态"   prop="confirmStatus" >
        <JnpfSelect   v-model="dataForm.confirmStatus" @change="changeData('confirmStatus',-1)"
 placeholder="请选择"  clearable  :style='{"width":"100%"}' :options="confirmStatusOptions" :props="confirmStatusProps" >
    </JnpfSelect>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="备注"   prop="remarks" >
        <JnpfInput   v-model="dataForm.remarks" @change="changeData('remarks',-1)"
 placeholder="请输入"  clearable  :style='{"width":"100%"}'>
    </JnpfInput>
    </jnpf-form-tip-item>
        </el-col>
        <el-col :span="24" >
        <jnpf-form-tip-item
 label="验收状态"   prop="status" >
        <JnpfSelect   v-model="dataForm.status" @change="changeData('status',-1)"
 placeholder="请选择"  clearable  :style='{"width":"100%"}' :options="statusOptions" :props="statusProps" >
    </JnpfSelect>
    </jnpf-form-tip-item>
        </el-col>
                </el-row>
                </el-col>
                <el-col :span="4">
                <el-row :gutter="30">
            <el-col :span="24" >
                <jnpf-form-tip-item>
                    <JnpfText
 :textStyle='{"color":"#000000","font-weight":"normal","text-decoration":"none","font-size":12,"line-height":32,"font-style":"normal","text-align":"left"}'>
                </JnpfText>
                </jnpf-form-tip-item>
            </el-col>
                </el-row>
                </el-col>
        <!-- 表单结束 -->
    </template>
    </el-form>
    <SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
                  ref="selectDialog" @select="addForSelect" @close="selectDialogVisible=false"/>
    </el-row>
    </div>
    </transition>
    </template>


<script>
    import request from '@/utils/request'
    import {mapGetters} from "vuex";
    import { getDataInterfaceRes } from '@/api/systemData/dataInterface'
    import { getDictionaryDataSelector } from '@/api/systemData/dictionary'
    import { getDefaultCurrentValueUserId } from '@/api/permission/user'
    import { getDefaultCurrentValueDepartmentId } from '@/api/permission/organize'
    import { getDateDay, getLaterData, getBeforeData, getBeforeTime, getLaterTime } from '@/components/Generator/utils/index.js'
    import { thousandsFormat } from "@/components/Generator/utils/index"
    export default {
        components: { },
        props: [],
        data() {
        return {
            dataFormSubmitType: 0,
            continueBtnLoading: false,
            index: 0,
            prevDis: false,
            nextDis: false,
            allList: [],
            visible: false,
            loading: false,
            btnLoading: false,
            formRef: 'formRef',
            setting:{},
            eventType: '',
            userBoxVisible:false,
            selectDialogVisible: false,
            currTableConf:{},
            dataValueAll:{},
            addTableConf:{
            },
            //可选范围默认值
            ableAll:{
            },
        tableRows:{
        },
            Vmodel:"",
            currVmodel:"",
            dataForm: {
                                enterpriseName : undefined,
                                enterpriseCreditCode : undefined,
                                    county : undefined,
                                phone : undefined,
                                projectId : undefined,
                                projectNames : undefined,
                                    digitalProjectContract : [],
                                    digitalProjectPlan : [],
                                    transactionRecords : [],
                                    scanningCopy : [{"fileSize":13824,"fileExtension":"docx","name":"福州市中小企业数字化转型被改造试点企业项目验收申请函模板.docx","url":"/api/file/Image/annex/6673de2e60b2091fb22ee52a.docx","fileId":"6673de2e60b2091fb22ee52a.docx"}],
                                    isconfirm : "0",
                                confirmtime : undefined,
                                acceptIspass : undefined,
                                rectificationOpinions : undefined,
                                    digitizationLevel : undefined,
                                    performanceAcceptanceReport : [],
                                    digitalEvaluationReport : [],
                                    todoStatus : undefined,
                                    confirmStatus : undefined,
                                remarks : undefined,
                                    status : undefined,
                                    creatoruserid : undefined,
                                    creatortime : undefined,
                                    lastmodifyuserid : undefined,
                                    lastmodifytime : undefined,
            },
            tableRequiredData: {},
            dataRule:
            {
                            enterpriseName: [
                                {
                                    required: true,
                                    message: '自动填充不可修改',
                                    trigger: 'blur'
                                },
                        ],
                            enterpriseCreditCode: [
                                {
                                    required: true,
                                    message: '自动填充不可修改',
                                    trigger: 'blur'
                                },
                        ],
                            county: [
                                {
                                    required: true,
                                    message: '请选择',
                                    trigger: 'change'
                                },
                        ],
                            projectId: [
                                {
                                    required: true,
                                    message: '自动填充不可修改',
                                    trigger: 'blur'
                                },
                        ],
                            projectNames: [
                                {
                                    required: true,
                                    message: '自动填充不可修改',
                                    trigger: 'blur'
                                },
                        ],
                            digitalProjectContract: [
                                {
                                    required: true,
                                    message: '请至少选择一个',
                                    trigger: 'change'
                                },
                        ],
                            digitalProjectPlan: [
                                {
                                    required: true,
                                    message: '请至少选择一个',
                                    trigger: 'change'
                                },
                        ],
                            transactionRecords: [
                                {
                                    required: true,
                                    message: '请至少选择一个',
                                    trigger: 'change'
                                },
                        ],
                            scanningCopy: [
                                {
                                    required: true,
                                    message: '请至少选择一个',
                                    trigger: 'change'
                                },
                        ],
                            isconfirm: [
                                {
                                    required: true,
                                    message: '请至少选择一个',
                                    trigger: 'change'
                                },
                        ],
                            acceptIspass: [
                                {
                                    required: true,
                                    message: '不能为空',
                                    trigger: 'change'
                                },
                        ],
            },
                            countyOptions:[{"fullName":"鼓楼区","id":"鼓楼区"},{"fullName":"台江区","id":"台江区"},{"fullName":"仓山区","id":"仓山区"},{"fullName":"马尾区","id":"马尾区"},{"fullName":"晋安区","id":"晋安区"},{"fullName":"长乐区","id":"长乐区"},{"fullName":"闽侯县","id":"闽侯县"},{"fullName":"连江县","id":"连江县"},{"fullName":"罗源县","id":"罗源县"},{"fullName":"闽清县","id":"闽清县"},{"fullName":"永泰县","id":"永泰县"},{"fullName":"福清市","id":"福清市"},{"fullName":"高新区","id":"高新区"}],
                            countyProps:{"label":"fullName","value":"id"  },
                            isconfirmOptions:[{"fullName":"确认","id":"1"},{"fullName":"未确认","id":"0"}],
                            isconfirmProps:{"label":"fullName","value":"id"  },
                            acceptIspassOptions:[{"fullName":"建议通过","id":"1"},{"fullName":"建议整改","id":"0"}],
                            acceptIspassProps:{"label":"fullName","value":"id"  },
                            digitizationLevelOptions:[{"fullName":"无等级","id":"0"},{"fullName":"一级","id":"1"},{"fullName":"二级","id":"2"},{"fullName":"三级","id":"3"},{"fullName":"四级","id":"4"}],
                            digitizationLevelProps:{"label":"fullName","value":"id"  },
                            todoStatusOptions:[{"fullName":"整改","id":"整改"},{"fullName":"待办","id":"待办"},{"fullName":"已办","id":"已办"}],
                            todoStatusProps:{"label":"fullName","value":"id"  },
                            confirmStatusOptions:[{"fullName":"同意","id":"同意"},{"fullName":"退回","id":"退回"}],
                            confirmStatusProps:{"label":"fullName","value":"id"  },
                            statusOptions:[{"fullName":"已审核","id":"2"},{"fullName":"审核中","id":"1"},{"fullName":"等待提交","id":"0"}],
                            statusProps:{"label":"fullName","value":"id"  },
            childIndex:-1,
                    isEdit:false,
                    interfaceRes: {
                        enterpriseName:[] ,
                        enterpriseCreditCode:[] ,
                        county:[] ,
                        phone:[] ,
                        projectId:[] ,
                        projectNames:[] ,
                        digitalProjectContract:[] ,
                        digitalProjectPlan:[] ,
                        transactionRecords:[] ,
                        scanningCopy:[] ,
                        isconfirm:[] ,
                        confirmtime:[] ,
                        acceptIspass:[] ,
                        rectificationOpinions:[] ,
                        digitizationLevel:[] ,
                        performanceAcceptanceReport:[] ,
                        digitalEvaluationReport:[] ,
                        todoStatus:[] ,
                        confirmStatus:[] ,
                        remarks:[] ,
                        status:[] ,
                        creatoruserid:[] ,
                        creatortime:[] ,
                        lastmodifyuserid:[] ,
                        lastmodifytime:[] ,
            },
        }
        },
        computed: {
            ...mapGetters(['userInfo'])
        },
        watch: {},
        created() {
            this.dataAll()
            this.initDefaultData()
            this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm))
        },
        mounted() {},
        methods: {
            prev() {
                this.index--
                if (this.index === 0) {
                    this.prevDis = true
                }
                this.nextDis = false
                for (let index = 0; index < this.allList.length; index++) {
                    const element = this.allList[index];
                    if (this.index == index) {
                        this.getInfo(element.id)
                    }
                }
            },
            next() {
                this.index++
                if (this.index === this.allList.length - 1) {
                    this.nextDis = true
                }
                this.prevDis = false
                for (let index = 0; index < this.allList.length; index++) {
                    const element = this.allList[index];
                    if (this.index == index) {
                        this.getInfo(element.id)
                    }
                }
            },
            getInfo(id) {
                request({
                    url: '/api/example/Fz_enterprise_acceptance_results/'+ id,
                    method: 'get'
                }).then(res => {
                    this.dataInfo(res.data)
                });
            },
            goBack() {
                this.visible = false
                this.$emit('refreshDataList', true)
            },
            changeData(model, index) {
                this.isEdit = false
                this.childIndex = index
                let modelAll = model.split("-");
                let faceMode = "";
                for (let i = 0; i < modelAll.length; i++) {
                    faceMode += modelAll[i];
                }
                for (let key in this.interfaceRes) {
                    if (key != faceMode) {
                        let faceReList = this.interfaceRes[key]
                        for (let i = 0; i < faceReList.length; i++) {
                            if (faceReList[i].relationField == model) {
                                let options = 'get' + key + 'Options';
                                if(this[options]){
                                    this[options]()
                                }
                                this.changeData(key, index)
                            }
                        }
                    }
                }
            },
            changeDataFormData(type, data, model,index,defaultValue) {
                if(!this.isEdit) {
                    if (type == 2) {
                        for (let i = 0; i < this.dataForm[data].length; i++) {
                            if (index == -1) {
                                this.dataForm[data][i][model] = defaultValue
                            } else if (index == i) {
                                this.dataForm[data][i][model] = defaultValue
                            }
                        }
                    } else {
                        this.dataForm[data] = defaultValue
                    }
                }
            },
            dataAll(){
            },
                goBack() {
                this.$emit('refresh')
            },
            clearData(){
                this.dataForm = JSON.parse(JSON.stringify(this.dataValueAll))
            },
            init(id,isDetail,allList) {
                this.prevDis = false
                this.nextDis = false
                this.allList = allList || []
                if (allList.length) {
                    this.index = this.allList.findIndex(item => item.id === id)
                    if (this.index == 0) {
                        this.prevDis = true
                    }
                    if (this.index == this.allList.length - 1) {
                        this.nextDis = true
                    }
                } else {
                    this.prevDis = true
                    this.nextDis = true
                }
                this.dataForm.id = id || 0;
                this.visible = true;
                this.$nextTick(() => {
                    if(this.dataForm.id){
                        this.loading = true
                        request({
                            url: '/api/example/Fz_enterprise_acceptance_results/'+this.dataForm.id,
                            method: 'get'
                        }).then(res => {
                            this.dataInfo(res.data)
                            this.loading = false
                        });
                    }else{
                        this.clearData()
                        this.initDefaultData()
                    }
                });
                this.$store.commit('generator/UPDATE_RELATION_DATA', {})
            },
            //初始化默认数据
            initDefaultData() {

            },
            // 表单提交
            dataFormSubmit(type) {
                this.dataFormSubmitType = type ? type : 0
                this.$refs['formRef'].validate((valid) => {
                    if (valid) {
                        this.request()
                    }
                })
            },
            request() {
                let _data =this.dataList()
                if (this.dataFormSubmitType == 2) {
                    this.continueBtnLoading = true
                } else {
                    this.btnLoading = true
                }
                if (!this.dataForm.id) {
                    request({
                        url: '/api/example/Fz_enterprise_acceptance_results',
                        method: 'post',
                        data: _data
                    }).then((res) => {
                        this.$message({
                            message: res.msg,
                            type: 'success',
                            duration: 1000,
                            onClose: () => {
                                if (this.dataFormSubmitType == 2) {
                                    this.$nextTick(() => {
                                        this.clearData()
                                        this.initDefaultData()
                                    })
                                    this.continueBtnLoading = false
                                    return
                                }
                                this.visible = false
                                this.btnLoading = false
                                this.$emit('refresh', true)
                            }
                        })
                    }).catch(()=>{
                        this.btnLoading = false
                        this.continueBtnLoading = false
                    })
                }else{
                    request({
                        url: '/api/example/Fz_enterprise_acceptance_results/'+this.dataForm.id,
                        method: 'PUT',
                        data: _data
                    }).then((res) => {
                        this.$message({
                            message: res.msg,
                            type: 'success',
                            duration: 1000,
                            onClose: () => {
                                if (this.dataFormSubmitType == 2) return this.continueBtnLoading = false
                                this.visible = false
                                this.btnLoading = false
                                this.$emit('refresh', true)
                            }
                        })
                    }).catch(()=>{
                        this.btnLoading = false
                        this.continueBtnLoading = false
                    })
                }
            },
            openSelectDialog(key) {
                this.currTableConf=this.addTableConf[key]
                this.currVmodel=key
                this.selectDialogVisible = true
                this.$nextTick(() => {
                    this.$refs.selectDialog.init()
                })
            },
            addForSelect(data) {
                for (let i = 0; i < data.length; i++) {
                    let t = data[i]
                    if(this['get'+this.currVmodel]){
                        this['get'+this.currVmodel](t)
                    }
                }
            },
            dateTime(timeRule, timeType, timeTarget, timeValueData, dataValue) {
                let timeDataValue = null;
                let timeValue = Number(timeValueData)
                if (timeRule) {
                    if (timeType == 1) {
                        timeDataValue = timeValue
                    } else if (timeType == 2) {
                        timeDataValue = dataValue
                    } else if (timeType == 3) {
                        timeDataValue = new Date().getTime()
                    } else if (timeType == 4) {
                        let previousDate = '';
                        if (timeTarget == 1 || timeTarget == 2) {
                            previousDate = getDateDay(timeTarget, timeType, timeValue)
                            timeDataValue = new Date(previousDate).getTime()
                        } else if (timeTarget == 3) {
                            previousDate = getBeforeData(timeValue)
                            timeDataValue = new Date(previousDate).getTime()
                        } else {
                            timeDataValue = getBeforeTime(timeTarget, timeValue).getTime()
                        }
                    } else if (timeType == 5) {
                        let previousDate = '';
                        if (timeTarget == 1 || timeTarget == 2) {
                            previousDate = getDateDay(timeTarget, timeType, timeValue)
                            timeDataValue = new Date(previousDate).getTime()
                        } else if (timeTarget == 3) {
                            previousDate = getLaterData(timeValue)
                            timeDataValue = new Date(previousDate).getTime()
                        } else {
                            timeDataValue = getLaterTime(timeTarget, timeValue).getTime()
                        }
                    }
                }
                return timeDataValue;
            },
            time(timeRule, timeType, timeTarget, timeValue, formatType, dataValue) {
                let format = formatType == 'HH:mm' ? 'HH:mm:00' : formatType
                let timeDataValue = null
                if (timeRule) {
                    if (timeType == 1) {
                        timeDataValue = timeValue || '00:00:00'
                        if (timeDataValue.split(':').length == 3) {
                            timeDataValue = timeDataValue
                        } else {
                            timeDataValue = timeDataValue + ':00'
                        }
                    } else if (timeType == 2) {
                        timeDataValue = dataValue
                    } else if (timeType == 3) {
                        timeDataValue = this.jnpf.toDate(new Date(), format)
                    } else if (timeType == 4) {
                        let previousDate = '';
                        previousDate = getBeforeTime(timeTarget, timeValue)
                        timeDataValue = this.jnpf.toDate(previousDate, format)
                    } else if (timeType == 5) {
                        let previousDate = '';
                        previousDate = getLaterTime(timeTarget, timeValue)
                        timeDataValue = this.jnpf.toDate(previousDate, format)
                    }
                }
                return timeDataValue;
            },
            dataList(){
                var _data = this.dataForm;
                return _data;
            },
            dataInfo(dataAll){
                let _dataAll =dataAll
                this.dataForm = _dataAll
                this.isEdit = true
                this.dataAll()
                this.childIndex=-1
            },
        },
    }

</script>
